#ifndef __MY_DAC_H__
#define __MY_DAC_H__

#include "n32l40x.h"

typedef enum{
    DAC_1500MV = 1,
    DAC_1700MV,
    DAC_1850MV,
    DAC_2000MV,
    DAC_2100MV,
    DAC_2200MV,
    DAC_2300MV,
    DAC_2400MV,     // MAX

    DAC_2800MV,
    DAC_3000MV,
    DAC_MAX = DAC_2400MV,
}DAC_VALUE_e;

void ems_voltage_percent_select(int percent);
void ems_voltage_select(void);

void ems_output_enable(void);
void ems_output_disable(void);
void my_dac_init(void);

#endif